package demo19;

import java.util.Scanner;

public class Main {
    public static void main(String[]args){
        dun d=new dun();
        int []array={4,6,8,5,9};
        d.initial(array);
        d.display();
        Scanner s=new Scanner(System.in);
        System.out.println();
        System.out.println("请输入你要删除的元素：");
        int num2=s.nextInt();
        d.delect(num2);
        System.out.println();
        System.out.println("请输入你要插入的数：");
        int num=s.nextInt();
        System.out.println("插入结果为：");
        d.insert(num);
        d.poll();
        System.out.println();
        d.peek();

    }
}
